package com.maimao.model.goods.vo;

import com.maimao.model.goods.*;
import com.maimao.model.info.MgCoupon;
import com.maimao.model.user.Shop;
import lombok.*;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

/**
 * 详情页商品数据
 *
 * @author MaoLin Wang
 * @date 2020/12/31 7:17 下午
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class GoodsPage {

    private Goods goods;

    private LocalDateTime now = LocalDateTime.now().withNano(0);

    private GoodsDetail goodsDetail;

    /**
     * 所有规格信息
     */
    private List<SpecGroupEx> specList;

    /**
     * 销售规格展示
     */
    private List<SkuShow> skuShowList;

    private List<GoodsSku> goodsSkus;

    private List<Category> categories;
    private Brand brand;

    private Shop shop;

    //TODO 评论信息

    /**
     * 优惠券信息
     */
    private List<MgCoupon> mgCoupons;

    @Override
    public String toString() {
        return "GoodsPage{" +
                "goods=" + goods +
                ", goodsDetail=" + goodsDetail +
                ", specList=" + specList +
                ", skuShowList=" + skuShowList +
                ", goodsSkus=" + goodsSkus +
                ", categories=" + categories +
                ", mgCoupons=" + mgCoupons +
                ", brand=" + brand +
                ", shop=" + shop +
                '}';
    }
}
